import request from '@/utils/request'

// export function getList(params) {
//   return request({
//     url: '/campus/class/list',
//     method: 'get',
//     params
//   })
// }

export function pageList(pageNum, pageSize, body) {
  return request({
    url: '/campus/class/list',
    method: 'get',
    params: {
      pageNum,
      pageSize,
      ...body
    }
  })
}

export function editList(method, data) {
  return request({
    url: '/campus/class',
    method,
    data
  })
}

export function deleteList(ids) {
  return request({
    url: '/campus/class/' + ids,
    method: 'delete'
  })
}

export function studentInClass(id) {
  return request({
    url: '/campus/class/' + id
  })
}
